<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('单位信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>上级单位ID：</label>
                                <input type="text" name="parentid"/>
                            </li>
                            <li>
                                <label>机构代码：</label>
                                <input type="text" name="jigoudaima"/>
                            </li>
                            <li>
                                <label>机构名称：</label>
                                <input type="text" name="jigoumingcheng"/>
                            </li>
                            <li>
                                <label>机构类别d：</label>
                                <input type="text" name="jigoujibie"/>
                            </li>
                            <li>
                                <label>机构类型d：</label>
                                <input type="text" name="jigouleixing"/>
                            </li>
                            <li>
                                <label>省份d：</label>
                                <input type="text" name="shengfen"/>
                            </li>
                            <li>
                                <label>城市d：</label>
                                <input type="text" name="chengshi"/>
                            </li>
                            <li>
                                <label>地址：</label>
                                <input type="text" name="dizhi"/>
                            </li>
                            <li>
                                <label>邮编：</label>
                                <input type="text" name="youbian"/>
                            </li>
                            <li>
                                <label>经办人：</label>
                                <input type="text" name="jingbanren"/>
                            </li>
                            <li>
                                <label>经办人办公电话：</label>
                                <input type="text" name="jingbanrenbangongdianhua"/>
                            </li>
                            <li>
                                <label>经办人手机号码：</label>
                                <input type="text" name="jingbanrenshoujihaoma"/>
                            </li>
                            <li>
                                <label>传真号码：</label>
                                <input type="text" name="chuanzhenghaoma"/>
                            </li>
                            <li>
                                <label>电子邮件：</label>
                                <input type="text" name="dianziyoujian"/>
                            </li>
                            <li>
                                <label>负责人：</label>
                                <input type="text" name="fuzeren"/>
                            </li>
                            <li>
                                <label>负责人办公电话：</label>
                                <input type="text" name="fuzerenbangongdianhua"/>
                            </li>
                            <li>
                                <label>负责人手机号码：</label>
                                <input type="text" name="fuzerenshoujihaoma"/>
                            </li>
                            <li>
                                <label>财务办公电话：</label>
                                <input type="text" name="caiwubangongdianhua"/>
                            </li>
                            <li>
                                <label>财务手机号码：</label>
                                <input type="text" name="caiwushoujihaoma"/>
                            </li>
                            <li>
                                <label>开户行：</label>
                                <input type="text" name="kaihuhang"/>
                            </li>
                            <li>
                                <label>银行账号：</label>
                                <input type="text" name="yinhangzhanghao"/>
                            </li>
                            <li>
                                <label>开户名称：</label>
                                <input type="text" name="kaihumingcheng"/>
                            </li>
                            <li>
                                <label>银行地址：</label>
                                <input type="text" name="yinhangdizhi"/>
                            </li>
                            <li>
                                <label>联行号：</label>
                                <input type="text" name="lianhanghao"/>
                            </li>
                            <li>
                                <label>单位状态：</label>
                                <input type="text" name="danweizhuangtai"/>
                            </li>
                            <li>
                                <label>数据摘要：</label>
                                <input type="text" name="shujuzhaiyao"/>
                            </li>
                            <li>
                                <label>添加时间：</label>
                                <input type="text" class="time-input" placeholder="请选择添加时间" name="tianjiashijian"/>
                            </li>
                            <li>
                                <label>最后修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择最后修改时间" name="zuihouxiugaishijian"/>
                            </li>
                            <li>
                                <label>是否有效：</label>
                                <input type="text" name="isvalid"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:deptdetail:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:deptdetail:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:deptdetail:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:deptdetail:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:deptdetail:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:deptdetail:remove')}]];
        var prefix = ctx + "system/deptdetail";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "单位信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '单位ID',
                    visible: false
                },
                {
                    field: 'parentid',
                    title: '上级单位ID'
                },
                {
                    field: 'jigoudaima',
                    title: '机构代码'
                },
                {
                    field: 'jigoumingcheng',
                    title: '机构名称'
                },
                {
                    field: 'jigoujibie',
                    title: '机构类别d'
                },
                {
                    field: 'jigouleixing',
                    title: '机构类型d'
                },
                {
                    field: 'shengfen',
                    title: '省份d'
                },
                {
                    field: 'chengshi',
                    title: '城市d'
                },
                {
                    field: 'dizhi',
                    title: '地址'
                },
                {
                    field: 'youbian',
                    title: '邮编'
                },
                {
                    field: 'jingbanren',
                    title: '经办人'
                },
                {
                    field: 'jingbanrenbangongdianhua',
                    title: '经办人办公电话'
                },
                {
                    field: 'jingbanrenshoujihaoma',
                    title: '经办人手机号码'
                },
                {
                    field: 'chuanzhenghaoma',
                    title: '传真号码'
                },
                {
                    field: 'dianziyoujian',
                    title: '电子邮件'
                },
                {
                    field: 'fuzeren',
                    title: '负责人'
                },
                {
                    field: 'fuzerenbangongdianhua',
                    title: '负责人办公电话'
                },
                {
                    field: 'fuzerenshoujihaoma',
                    title: '负责人手机号码'
                },
                {
                    field: 'caiwubangongdianhua',
                    title: '财务办公电话'
                },
                {
                    field: 'caiwushoujihaoma',
                    title: '财务手机号码'
                },
                {
                    field: 'kaihuhang',
                    title: '开户行'
                },
                {
                    field: 'yinhangzhanghao',
                    title: '银行账号'
                },
                {
                    field: 'kaihumingcheng',
                    title: '开户名称'
                },
                {
                    field: 'yinhangdizhi',
                    title: '银行地址'
                },
                {
                    field: 'lianhanghao',
                    title: '联行号'
                },
                {
                    field: 'danweizhuangtai',
                    title: '单位状态'
                },
                {
                    field: 'shujuzhaiyao',
                    title: '数据摘要'
                },
                {
                    field: 'tianjiashijian',
                    title: '添加时间'
                },
                {
                    field: 'zuihouxiugaishijian',
                    title: '最后修改时间'
                },
                {
                    field: 'beizhu1',
                    title: ''
                },
                {
                    field: 'beizhu2',
                    title: ''
                },
                {
                    field: 'beizhu3',
                    title: ''
                },
                {
                    field: 'beizhu4',
                    title: ''
                },
                {
                    field: 'beizhu5',
                    title: ''
                },
                {
                    field: 'isvalid',
                    title: '是否有效'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>